package com.baizan.daka.mvp.model

import com.baizan.daka.mvp.model.bean.BannerBean
import com.baizan.daka.util.SchedulerUtils
import com.hazz.kotlinmvp.net.BaseResponse
import com.hazz.kotlinmvp.net.RetrofitManager
import io.reactivex.Observable

class BannerModel {

    fun loadHomeBanner(): Observable<BaseResponse<List<BannerBean>>> {
        return RetrofitManager.service.getBanner().compose(SchedulerUtils.ioToMain())
    }
}